
class DropSwitchBean {
  String name;
  List<DropSwitchItem> tempList;

  DropSwitchBean(String name, List tempList){
    this.name = name;
    List<DropSwitchItem> list = new List();
    for(Map data in tempList){
      list.add(DropSwitchItem.fromJson(data));
    }
    this.tempList = list;
  }

  @override
  String toString() {
    return 'DropSwitchBean{name: $name, tempList: $tempList}';
  }
}


class DropSwitchItem {
  String createTime;
  double degree;
  String equipmentId;
  String equipmentPositionId;
  double i;
  String id;
  String itemName;
  String positionName;
  String sensorId;
  String sensorItemId;
  String sensorName;
  int status;

  @override
  String toString() {
    return 'DropSwitchItem{createTime: $createTime, degree: $degree, equipmentId: $equipmentId, equipmentPositionId: $equipmentPositionId, i: $i, id: $id, itemName: $itemName, positionName: $positionName, sensorId: $sensorId, sensorItemId: $sensorItemId, sensorName: $sensorName, status: $status}';
  }

  DropSwitchItem(
      {this.createTime,
        this.degree,
        this.equipmentId,
        this.equipmentPositionId,
        this.i,
        this.id,
        this.itemName,
        this.positionName,
        this.sensorId,
        this.sensorItemId,
        this.sensorName,
        this.status});

  DropSwitchItem.fromJson(Map<String, dynamic> json) {
    createTime = json['createTime'];
    degree = json['degree'];
    equipmentId = json['equipmentId'];
    equipmentPositionId = json['equipmentPositionId'];
    i = json['i'];
    id = json['id'];
    itemName = json['itemName'];
    positionName = json['positionName'];
    sensorId = json['sensorId'];
    sensorItemId = json['sensorItemId'];
    sensorName = json['sensorName'];
    status = json['status'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['createTime'] = this.createTime;
    data['degree'] = this.degree;
    data['equipmentId'] = this.equipmentId;
    data['equipmentPositionId'] = this.equipmentPositionId;
    data['i'] = this.i;
    data['id'] = this.id;
    data['itemName'] = this.itemName;
    data['positionName'] = this.positionName;
    data['sensorId'] = this.sensorId;
    data['sensorItemId'] = this.sensorItemId;
    data['sensorName'] = this.sensorName;
    data['status'] = this.status;
    return data;
  }
}





